package com.aj.Interface;

import com.aj.pojo.Member;
import entity.PageResult;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public interface MemberService {
    /**
     * 根据手机号码查询会员
     * @param telephone
     * @return
     */
    Member findBytelephone(String telephone);

    /**
     * 注册
     * @param member
     */
    void addmember(Member member);

    /**
     * 统计每个月分的会员的总数(累加)
     * @param list
     * @return
     */
    List<Integer> findMemberCountByMonth(ArrayList<String> list);


    Map getMemberAgeReport();

    List<Map<String,Object>> getMemberSexReport();

    Member findById(Integer id);

    void delete(Integer id);

    void update(Member member);

    PageResult findPage(Integer currentPage, Integer pageSize, String queryString);
}
